package com.lzx.payment.service;

import com.lzx.common.utils.R;
import com.lzx.payment.entity.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lzx
 * @since 2022-12-19
 */
public interface RefundInfoService extends IService<RefundInfo> {

    //根据订单号创建退款订单
    RefundInfo createRefundByOrderNoForAliPay(String orderNo, String reason);

    //更新退款记录
    void updateRefundForAliPay(String refundNo, String content, String refundStatus);

    //获取退款列表
    R getRefundInfoList(int current, int size);
}
